package com.ziyueyuwen.xiniao.service.impl;

import com.ziyueyuwen.xiniao.bean.homework.ZySubjectDO;
import com.ziyueyuwen.xiniao.dao.ZySubjectMapper;
import com.ziyueyuwen.xiniao.service.SubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jun 2018/12/20.
 */
@Service
public class SubjectServiceImpl implements SubjectService {
    @Autowired
    private ZySubjectMapper zySubjectMapper;

    @Override
    public Boolean add(ZySubjectDO zySubject) {
        return zySubjectMapper.add(zySubject);
    }

    @Override
    public List<ZySubjectDO> listAll() {
        return zySubjectMapper.listAll();
    }
}
